import axios from "@/utils/my_axios"

const communityApi = {
    communityList: "/boss/community/listBySortByPage",
    deleteCommunity: "/boss/community/deleteById",
    queryCommunity: "/boss/community/selectById",
    addCommunity: "/boss/community/add",
    editCommunity: "/boss/community/update",
};

export function getCommunityList(parameter){
    return axios({
        url: communityApi.communityList,
        method: "get",
        params: parameter,
    });
}

export function deleteCommunity(parameter){
    return axios({
        url: communityApi.deleteCommunity,
        method: "get",
        params: parameter,
    });
}

export function queryCommunity(parameter){
    return axios({
        url: communityApi.queryCommunity,
        method: "get",
        params: parameter,
    });
}

export function addCommunity(parameter){
    return axios({
        url: communityApi.addCommunity,
        method: "get",
        params: parameter,
    });
}

export function editCommunity(parameter){
    return axios({
        url: communityApi.editCommunity,
        method: "get",
        params: parameter,
    });
}